//package com.twd.allcomponent.login.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//import lombok.extern.slf4j.Slf4j;
///**
// * 登录拦截配置类
// * @author lixiang
// */
//@Configuration
//@Slf4j
//public class InterceptorConfig implements WebMvcConfigurer {
//
//    @Bean
//    public LoginInterceptor loginInterceptor() {
//        return new LoginInterceptor();
//    }
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(loginInterceptor())
//                .addPathPatterns("/aouth")
//                //排查不拦截的路径
//                .excludePathPatterns("/login","/swagger-ui.html");
//    }
//}
